Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

278
Views
How do I run gdb on .net unit tests?

I have some code which does native interop and is having a segfault when running unit tests with dotnet test.

If I call the test code without 'dotnet test' then it doesn't segfault.

I need to be able to run gdb to debug the segfault but running gdb on 'dotnet test' doesn't work, it seems that it launches another process to do the tests. This means the segfault happens on a process that gdb isn't attached to. For example the following command doesn't result in gdb being able to catch the segfault.

gdb --args dotnet test

How can I use gdb to debug native c# interop in my .net unit tests.

(the tests actually use SpecFlow which uses nunit)

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!