dlangide icon indicating copy to clipboard operation
dlangide copied to clipboard

Debugging

Open jiyanj91 opened this issue 6 years ago • 5 comments

Related to #337 when debugging the wrong file is getting higlighted.

jiyanj91 avatar Oct 04 '17 14:10 jiyanj91

Could you provide some scenario to reproduce? Are file with same names located in the same project or different projects? What is your OS and debugger?

buggins avatar Oct 05 '17 08:10 buggins

Xubuntu is the OS, gdb debugger,

-I make a new workspace. -I create 2 projects which have the file app.d

Now by debugging the bug happens.

jiyanj91 avatar Oct 05 '17 22:10 jiyanj91

I'm also having a problem while debugging, albeit I'm not sure what jiyanj91 is talking about.

This is on Windows 10, with dmd installed. (I couldnt get gdc to be found by dlangide yet) I'm using the built in mago-mi debugger. Reproduction:

  1. get dlangide: dub fetch dlangide && dub run --build=release dlangide
  2. create new "hello world" project
  3. activate breakpoint somewhere in the app.d file
  4. build, start debugging

Now, when the breakpoint is reached, the "Stack" view on the right updates first to the correct address(?), but then jumps to the first entry in the drop down list, showing ntdll.dll, kernel32.dll etc. instead of showing the entry of main. When I click through each entry in the drop down list, it updates to the selected entry, but after about half a second it jumps back to the first entry.

So I'm expecting to see the following: expected

Actually I'm getting: actual

With Code: actual_with code

all them stacks: stack entries

I hope this helps

kamisori avatar Oct 09 '17 12:10 kamisori

Thanks! I'll try to fix it.

buggins avatar Oct 10 '17 06:10 buggins

I forgot to mentiion that i select the second project as startup project of course

jiyanj91 avatar Oct 10 '17 08:10 jiyanj91