Bug 28878 - command line SDB(soft debugger) not recognizing the source code of windows dll
Summary: command line SDB(soft debugger) not recognizing the source code of windows dll
Status: RESOLVED ANSWERED
Alias: None
Product: Runtime
Classification: Mono
Component: Debugger ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Zoltan Varga
URL:
Depends on:
Blocks:
 
Reported: 2015-04-08 04:57 UTC by vijaya.d.sajjan
Modified: 2015-06-23 11:39 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED ANSWERED

Description vijaya.d.sajjan 2015-04-08 04:57:42 UTC
I have C# libraries(vds.dll) in windows m/c.

Now i am trying to use the  mono for my analysis. i have written the simple samples which uses the libraries built in windows m/c 

I have copied my libraries to linux/mono m/c (which are build in windows m/c ) i.e vds.dll and vds.pdb 

I am facing couple of issues on my mono m/c, the same programs run fine on windows m/c using VS2010 

I am trying to debug these issues on mono m/c  i am using command line SDB (soft debugger). 
some how my SDB is not recognizing the source code of my dll (vds.dll)

below are my questions 

a) is SDB and mono recognizes the pdb and dll copied from windows m/c 

b) i have copied the required src code of the dll in current directory where the application is running 
but still sdb is not recognizing my src code 

how to resolve this ?

Please let me know the clear steps to use command line SDB 

Thanks,
Vijaya
Comment 1 David Karlaš 2015-06-23 11:39:02 UTC
a) sdb and mono don't recognise .pdb file.. you have to use application called pdb2mdb.exe which is part of mono bin folder.(on Windows, Linux or Mac)
b) Unfortunately file compare is based on full paths, but recent versions of MonoDevelop/Xamarin Studio support locating source files at alternative locations... So what you can do is open your source file in MonoDevelop and place breakpoint and start debugging and breakpoint will be hit... To start debugging you can just open your .exe in monodevelop...

I suggest you to compile your project on Linux via XBuild(use it same as you would use MSBuild). It will be much easier.

Good luck,
David