Coder Social home page Coder Social logo

Comments (4)

zherczeg avatar zherczeg commented on September 28, 2024 1

We finally able to track it down. It turned out even if we don't specify -DESCARGOT_DEBUGGER=1, it is somewhere in the cmake cache, and somehow emitting disabled breakpoints cause the line info issues.

from escargot.

clover2123 avatar clover2123 commented on September 28, 2024

Hello!
When I test your sample code by escargot (revision 66d9545), it shows the backtrace info correctly as follows.

Uncaught 4:
test.js (5:8)
test.js (7:6)

Is this problem occurred only for debugger?
Would you please explain the case more specifically when it is occurred?

from escargot.

zherczeg avatar zherczeg commented on September 28, 2024

I also tried this test, and get the former output (with issue.js (6:7)). This is my cmake command:

`cmake -DCMAKE_C_COMPILER=gcc-9 -DCMAKE_CXX_COMPILER=g++-9 -DESCARGOT_HOST=linux -DESCARGOT_MODE=release -DESCARGOT_ARCH=x86 -DESCARGOT_OUTPUT=shell -GNinja``

Debugger is not enabled. I tried both debug and release modes and both x86 and x64 but I still get the same output. How do you compile Escargot?

from escargot.

clover2123 avatar clover2123 commented on September 28, 2024

I tried debug and release mode too.
I run the sample file(issue.js) with standalone escargot.

My compile command :
"cmake -DESCARGOT_HOST=linux -DESCARGOT_ARCH=x64 -DESCARGOT_MODE=debug -DESCARGOT_OUTPUT=shell_test -GNinja"

from escargot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.