Samsung / netcoredbg

NetCoreDbg is a managed code debugger with GDB/MI, VSCode DAP and CLI interfaces for CoreCLR.
MIT License
836 stars 103 forks source link

Shows warning even though works properly #168

Closed MuriMan closed 7 months ago

MuriMan commented 7 months ago
ncdb> file check
ncdb> b Program.cs:2
 Breakpoint 1 at Program.cs:2 --pending, warning: No executable code of the debugger's target code type is associated with this line.
ncdb>

the warning is unnecessary, how to turn it off?

viewizard commented 7 months ago

This is part of breakpoint setup response message, not warning itself. You can't turn it off.

MuriMan commented 7 months ago

Is it meant to happen?

viewizard commented 7 months ago

Yes, this is normal output for this case (breakpoint setup before debuggee process start).

gbalykov commented 7 months ago

@MuriMan at the time point of breakpoint setup such symbol is not yet loaded, however it might be present in dlls loaded in future, so it's pending and checked on each library load. Logic here is the same as for gdb:

$ gdb --args ./corerun ./hw.dll 
Reading symbols from ./corerun...
(gdb) b my_func
Function "my_func" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (my_func) pending.
(gdb) 
MuriMan commented 7 months ago

understood