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:

  1. set env var monodevelop_sdb_test=1 enable "custom command mono soft debugger"
  2. launch xamarin studio using same terminal first step.
  3. uncheck "debug project code only; not step framework code" in xamarin studio options -> debugger
  4. 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.
  5. build whole solution, copy child.dll parent.exe want , run mono --debug --debugger-agent=transport=dt_socket,server=y,suspend=n,address=127.0.0.1:55555 parent.exe parent-args. (parent.exe load child.dll)
  6. set dummy project startup roject
  7. 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

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -