Skip to content
This repository was archived by the owner on Nov 11, 2024. It is now read-only.

How to use SDB? #82

Answered by alexrp
achobanov asked this question in Questions
Discussion options

You must be logged in to vote

So you can place two kinds of breakpoints: Method breakpoints and location breakpoints. The former is great when you just want to break on method entry, e.g.:

$ cat test.cs
namespace MyApp {
        class Program {
                static void Main () {
                }
        }
}
$ mcs -debug test.cs
$ sdb
Welcome to the Mono soft debugger (sdb 1.5.5596.4936)
Type 'help' for a list of commands or 'quit' to exit

(sdb) bp add func MyApp.Program.Main
Breakpoint '0' added for method 'MyApp.Program.Main'
(sdb) r test.exe
Inferior process '30219' ('test.exe') started
Hit method breakpoint on 'MyApp.Program.Main'
#0 [0x00000000] MyApp.Program.Main at /home/alexrp/Projects/tests/test.cs:3
    …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by alexrp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #28 on June 12, 2021 09:18.