I'd like to know if and how I might be able to use the Mono compiler as a service (see here and here ) within a debugging context to query/modify/visualize/etc objects at runtime within the debugger. At the moment, per this SO post the Roslyn CTP does not support this feature.
Can the Mono compiler as a service be used in a debugging context?
435 Views Asked by lightw8 At
2
There are 2 best solutions below
0
Alberto
On
I think it should be feasible because Mono Soft Debugger is part of the Mono runtime so you could use the "Debugger Agent":
The debugger agent is a module inside the mono runtime which offers debugging services to client programs.
So, one alternative could be trying to interface with the Mono Soft Debugger in your compiler as service (which runs on top of the Mono runtime).
As the Mono Soft Debugger is used in the MonoDevelop IDE you could also investigate if this IDE could be used for what you are looking for.
Related Questions in C#
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in COMPILER-CONSTRUCTION
- Reference: Crafting Interpreters. Print statement is not able to evaluate expression. Help me fix this (details below)
- Load function written in amd64 assembly into memory and call it
- I have implemented till Statements and State in Tree Walk Interpreter. I am pissed with an error
- Resolve shift/reduction conflict in grammar for expressions in PLY for calls to embedded functions
- Grammar for access to properties and calls to embedded functions
- LLVM code generation causes problems with pointer arithmetic
- what does react compiler mean actually?
- Errors on Recursive Descent Parsing Java
- Java CUP produces Shift-Reduce conflict when parsing a grammar for a C++ type language
- Three-Address-Code (TAC) and Conjunction/Disjunction
- How do I write an implicit cast for my strongly typed interpreter? (C++)
- Yacc parser not reducing specific production rules as intended
- Why is the function version tag consistently "Base" in HDF5 library?
- Sly parser, how are recursively defined types implemented?
- Does a non terminal token need an explicit definition?
Related Questions in MONO
- Activity.SpanId is 0000000000000000 on .NET Framework
- How to get Assembly when loading assembly using mono_assembly_load_from?
- Facing issue when running xbuild after building mono via meta-mono version 6.12.0.161
- Debugger not hitting in the vs code when trying to attach the mono process
- How to Enable Runtime Code Changes and Move Execution Pointer in Blazor WASM Client-Side Debugging with Mono/C#?
- Why does Unity give not detect enemies and run the TakeDamage() function after running the OverLapCircle() function? (UNITY 2D)[ANSWERED]
- How do I obtain static property value through mono debug wire?
- Use Mono to load and access simple DLL in Linux
- compiled & installed mono 6,12,0.199 on RHEL8, vbc complains, csc succeeds
- EventToCommandBehavior RelativeSource in Xamarin.Forms
- GetModuleHandle return null
- Xamarin - SMPT OFFICE365: sending emails has stopped working for me
- How to stop C++ app from crashing when an Access Violation exception happens in a C# function?
- Why does the SQLite3 ASP.NET Connecters for Membership provider does not work
- Create integrated terminal in C# (Mono) application
Related Questions in GMCS
- How to compile C# class library project with mono (linux)?
- Can anybody know what to do to with (error CS1525: Unexpected symbol)
- Glob files in post build custom command in CMake
- Deterministic builds for Mono 3.2.8
- Can not use /bin/zsh to compile a csharp program, but /bin/bash can
- Chrome Push Notifications how to retrieve push data?
- why is gmcs command in bash(mono) missing the namespace `System.Threading'?
- gmcs error generating dll
- Compiling issues with mono and multi-threaded application
- Compiling with mono and -nostdlib
- Run mono .exe with the DLL's in a different folder
- How can you use Mono's mcs to compile and run a csproj file?
- MonoDevelop: is it possible to switch PCL's compiler?
- Compile & Install Mono on Centos - Can't get past 'make'
- Compiling C# code with Windows Forms in Linux
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Yes, thats perfectly possible. I cannot tell you the exact details on how to implement this, but take a look at MonoDevelop which actually implements your idea since v2.8 (or maybe earlier). In MonoDevelop, you have a REPL Pad available, which allows you to enter C# code in the very same context your application stopped because of a breakpoint. I've attached a simple Screenshot of MD in the debugging view and the REPL pad open. Since MD is opensource, you could check out the sources how it was implemented and strip the parts that you need.