Flow Studio Debugger
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    tolkien
    Posts: 534 from 2013/5/29
    Im trying the new source line debugger but dont understand a few things and there is no documentation.

    First, I can only see global variables but their values are incorrect, seems like memory address or somethig.

    I stop with a breakpoint and try to step through the source but it runs till end.Do I need to mark with breakpoints all lines?

    Im very happy with the new IDE. Great work mates!

    [ Editado por tolkien 29.03.2018 - 20:33 ]
    MorphOS: PowerMac G5 - PowerBook G4 - MacMini.
    Classic: Amiga 1200/060 - A500 PiStorm
  • »29.03.18 - 18:32
    Profile
  • MorphOS Developer
    Nadir
    Posts: 165 from 2003/3/17
    Quote:

    tolkien wrote:
    Im trying the new source line debugger but dont understand a few things and there is no documentation.
    [ Editado por tolkien 29.03.2018 - 20:33 ]



    Hi,

    Thanks for the encouraging words.It's absolutely true that documentation is severely lacking. It's a pity because there are probably many features that only I know about myself. Problem is that I don't have time or motivation to work on proper documentation (even though I keep telling myself I should). I prefer to code on my spare time.

    The debugger is still work in progress and there are many things missing or not fully implemented. Hopefully this will improve over time. As you spotted, proper trace functionality is missing so for now you indeed have to mark set breakpoints (btw, those can be conditional if you want. Use the rmb popup for that).

    There's an issue with global variables and they indeed don't show correct values. We didn't have the time to fix this before release.

    However, local variables should definitely work. One thing you should be careful about is gcc's optimization options. The DEBUG target uses -Og by default, which I recently discovered to be a bad idea. Better change to -O0 when working with the debugger. This will be the default in the next release. Let me know if that helps or otherwise give me a hint of what kind of code you are testing with.



    /Nicholai
  • »29.03.18 - 19:02
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    tolkien
    Posts: 534 from 2013/5/29
    Yes...I understand you. Work on documentation is a real boring task! ;)

    I have changed -Og to -O0 and I can now see local variables with its true values. Keep this good work Nadir and team!
    MorphOS: PowerMac G5 - PowerBook G4 - MacMini.
    Classic: Amiga 1200/060 - A500 PiStorm
  • »29.03.18 - 20:20
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    polluks
    Posts: 813 from 2007/10/23
    From: Gelsenkirchen,...
    Well done, 18 years without a debugger was a pity!
    SAS/C CodeProbe was already perfect. Finally no stone age debugging anymore!
    Pegasos II G4: MorphOS 3.9, Zalman M220W · iMac G5 12,1 17", MorphOS 3.18
    Power Mac G3: OSX 10.3 · PowerBook 5,8: OSX 10.5, MorphOS 3.18
  • »30.03.18 - 13:19
    Profile