Code Monkey home page Code Monkey logo

Comments (9)

synopse avatar synopse commented on May 19, 2024

Which debug format did you use?

You should use Dwarf 2 or 3.

from mormot2.

synopse avatar synopse commented on May 19, 2024

I am not able to reproduce your issue on Win32 or Win64 with Dwarf 2 debug symbols, and the current version of mORMot.

from mormot2.

salvadorbs avatar salvadorbs commented on May 19, 2024

image

Retried with last mORMot sources.
image

from mormot2.

synopse avatar synopse commented on May 19, 2024

I am not able to reproduce.

Try to debug more on your side.
What is the stack trace?
Where is the exact location?

And don't use a LCL UI, try with a console app.

from mormot2.

salvadorbs avatar salvadorbs commented on May 19, 2024

Tried without LCL UI and it works. So somewhere LCL introduces something the debug parser doesn't like.

Stack trace

from mormot2.

synopse avatar synopse commented on May 19, 2024

Can you debug in -O0 or -O1 level to have a more precise stack trace?

Some LCL unit may have weird/unusual symbols which failed our dbg parser.

Also try in Dwarf 3 format to see if it changes something.

from mormot2.

salvadorbs avatar salvadorbs commented on May 19, 2024

With Dwarf3, -O0 and fpdebug backend, I can't debug in TDwarfReader.ParseCompilationUnits. With gdb, I can step to step in this function, but I can't watch any variables. The issue seems in files[prevfile], but I can't see for which unit.

Ansi7ToString(files[prevfile])));

Anyway in this if

if state.isstmt and
I added another condition and (prevfile <= (length(files) - 1) and it works without exception. Can you please check it? Thanks

from mormot2.

synopse avatar synopse commented on May 19, 2024

That is very informative information!

Please try c21ee776

from mormot2.

salvadorbs avatar salvadorbs commented on May 19, 2024

It works! Thank you very much!

from mormot2.

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.