Samsung / netcoredbg

NetCoreDbg is a managed code debugger with MI interface for CoreCLR.
MIT License
743 stars 98 forks source link

Shows warning even though works properly #168

Closed MuriMan closed 2 months ago

MuriMan commented 2 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 2 months ago

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

MuriMan commented 2 months ago

Is it meant to happen?

viewizard commented 2 months ago

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

gbalykov commented 2 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 2 months ago

understood