Does Xamarin Studio allow debugging a library (dll) project in an easier way than this? -
i'm developing c# dll, called child.dll, loaded 3rd-party c# executable program, called parent.exe. don't have access source code of parent.exe.
on visual studio, when want debug dll project, have attach debugger parent.exe , that's it. can't find easy way on xamarin studio.
what i'm doing are:
- set env var
monodevelop_sdb_test=1enable "custom command mono soft debugger" - launch xamarin studio using same terminal first step.
- uncheck "debug project code only; not step framework code" in xamarin studio options -> debugger
- add dummy exe project in same solution of
child.dll. because xamarin studio doesn't allow "run with" library project type. doing this, can access "run with" feature of xamarin studio. - build whole solution, copy
child.dllparent.exewant , runmono --debug --debugger-agent=transport=dt_socket,server=y,suspend=n,address=127.0.0.1:55555 parent.exe parent-args. (parent.exeloadchild.dll) - set dummy project startup roject
- run > custom command mono soft debugger , connect 127.0.0.1:55555
i'm finding way let other developers in company able create , debug own child.dll under parent.exe. think unacceptable step fourth step doesn't make sense them.
does face same issue mine? how did achieve goal?
update info
i've over-simplified question. in real scenario, didn't manage parent.exe myself. parent.exe has been running (with exact command mono --debug --debugger-agent=transport=dt_socket,server=y,suspend=n,address=127.0.0.1:55555 parent.exe parent-args), started (process.start) program part of whole framework.
basically, workflow developers create child.dll create dll defines apis framework needs. then, inject dll framework.
right click on library project, on project options -> run -> custom commands. in combo, select execute , enter path parent.exe. you'll able "run" library, , debugger stop on breakpoints put in library code.
Comments
Post a Comment