VSCode plugin for MIR textual format #225
Replies: 4 comments 8 replies
-
This is cool. I am not familiar with VSCode but I know it is very popular. So thank you for implementing it and sharing it. I am planning to improve development experience for MIR. So what you are doing could be part of this. From my side I'd like to implement debugging MIR generated code in gdb on MIR level and C level when MIR is generated by |
Beta Was this translation helpful? Give feedback.
-
Simple one-file MIR can be run with interpreter from VSCode now, and the next step is stopping and inspecting. MIR interpreter cleverly utilizes the host call stack by unifying self-call with FFI and thus does not track the stack info. Need to add that. |
Beta Was this translation helpful? Give feedback.
-
Stepping through! |
Beta Was this translation helpful? Give feedback.
-
Almost finished the first steps for a debugger -- Breakpoints. Stepping in/over/out. Stack trace. Interactively viewing variables in each stack frame. Hovering inspection of variables. Basic REPL ( I'm going to take a rest, and then going on testing on multiple platforms. Some parts of code are messy and lack a universal design, which will be changed later. |
Beta Was this translation helpful? Give feedback.
-
I'm working on a JIT compiler these days and I usually end up in reading my MIR emission in the textual format for debugging. Thus I made a VSCode plugin (basically a syntax highlighter and same-token-as-selection highlighter currently) for reading MIR textual format more easily. Hope that it would be useful.
https://marketplace.visualstudio.com/items?itemName=eliphatfs0.vscode-mir
Beta Was this translation helpful? Give feedback.
All reactions