llucenic / monodevelop.debugger.gdb.d Goto Github PK
View Code? Open in Web Editor NEWDebugging support for D programming language in MonoDevelop under GNU/Linux.
Debugging support for D programming language in MonoDevelop under GNU/Linux.
I am currently running Xamarin studio 5.1 and when i attempted to install, I encountered an error saying i have missing dependencies
MonoDevelop.Core v4.0, found v5.1
MonoDevelop.Ide v4.0, found v5.1
in my case it was not monodevelop was not hitting breakpoints if they were in a constructor (however it works with normal/base gdb plugin).
i tracked it down to DGdbBacktrace.CreateVarObject when called from GdbBacktrace.GetParameters. It might need try catch around the "return Variables.EvaluateVariable (exp);" similarly to the base GdbBacktrace.CreateVarObject ..
either of these worked for me, not sure which is better
1)
try {
return Variables.EvaluateVariable (exp);
} catch {
return base.CreateVarObject (exp);
}
try {
return Variables.EvaluateVariable (exp);
} catch {
return ObjectValue.CreateUnknown (exp);
}
I understand that this does not help fix the true problem of why an exception is occuring in the first place, but at least it does not prevent the breakpoints from being hit.
callstack when i noticed this behavior:
MonoDevelop.Debugger.Gdb.D.DGdbBacktrace.CreateVarObject (exp="this")
MonoDevelop.Debugger.Gdb.GdbBacktrace.GetParameters
MonoDevelop.Debugger.Gdb.D.DGdbBacktrace.GetParameters
Mono.Debugging.Client.StackFrame.GetParameters
MonoDevelop.Debugger.StackTracePad.EvaluateMethodName
MonoDevelop.Debugger.StackTracePad.Update
MonoDevelop.Debugger.StackTracePad.UpdateDisplay
When I'm try to debug D application I getting error:
MonoDevelop.Debugger.Gdb.GdbException: Undefined command: "".
Try "help".
at MonoDevelop.Debugger.Gdb.GdbSession.RunCommand
(System.String command, System.String[] args) [0x00000] in
:0
at MonoDevelop.Debugger.Gdb.GdbSession.OnRun
(Mono.Debugging.Client.DebuggerStartInfo startInfo) [0x00000] in
:0
at
Mono.Debugging.Client.DebuggerSession+c__AnonStorey6.<>m__3
() [0x00000] in :0
And in Application Output window:
\357\273\277-inferior-tty-set /dev/pts/2
Undefined command: "". Try "help".
Where \357\273\277 is unicode byte order mark.
The same result i'm got when created and run "hello world" C
console project. When I disabled plugin everything went ok.
MonoDevelop 4.2.3 under Arch Linux
Mono-D 1.6.7 & D gdb debug plugin 0.2.6
It seems MD got rid of the option to set a preferred debugger?
mono/monodevelop@f0e931b
Is there another way select gdb.d as the debugger?
How are you guys using it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.