You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -51,11 +52,13 @@ This will cause the debugger to look like it has hung once you start debugging,
51
52
52
53
### Debugging MIEngine running on Linux or Mac OS X
53
54
55
+
#### With MonoDevelop
56
+
54
57
On Linux and Mac OS X, we use `mono` as our framework. You can download Xamarin Studio v5.10.1.6 and remotely attach to your Mac or Linux box to debug there.
2. Install [Xamarin Studio v5.10.1.6](http://download.xamarin.com/studio/Windows/XamarinStudio-5.10.1.6-0.msi).
59
62
60
63
Remote attach functionality behind a flag. You can run it like this:
61
64
```PowerShell
@@ -64,26 +67,60 @@ set MONODEVELOP_SDB_TEST=1
64
67
MonoDevelop.exe
65
68
```
66
69
67
-
#### Create an empty project for attaching (one-time setup)
70
+
#####Create an empty project for attaching (one-time setup)
68
71
69
-
1. Launch MonoDevelop
70
-
2. File -> New Solution
71
-
3. Misc/Generic Project
72
-
4. Name project and hit "Create"
73
-
5. Right-click the project node (blue square) and do "Options"
72
+
1. Launch MonoDevelop.
73
+
2. File -> New Solution.
74
+
3. Misc/Generic Project.
75
+
4. Name project and hit "Create".
76
+
5. Right-click the project node (blue square) and do "Options".
74
77
6. Under Run -> Custom Commands, select "Execute" in the lower dropdown and choose a command (I use `c:\windows\notepad.exe` - it doesn't matter what the command is, but MonoDevelop requires it to exist before it'll light up the Run menu).
75
78
76
-
#### Configure the extension to enable remote debugging
79
+
#####Configure the extension to enable remote debugging
77
80
78
81
Open the **~/.vscode/extensions/ms-vscode.cpptools-\<version\>/debugAdapters/OpenDebugAD7** file with a text editor and locate and uncomment the line at the bottom. When you start debugging, it will now hang until the remote debugger is attached from Xamarin Studio.
79
82
80
-
#### Attach the remote debugger
83
+
#####Attach the remote debugger
81
84
82
-
In MonoDevelop: Run -> Run With -> Custom Command Mono Soft Debugger
83
-
Fill in the IP and port of the Linux/Mac OS X machine and hit "Connect" to start debugging
85
+
In MonoDevelop: Run -> Run With -> Custom Command Mono Soft Debugger.
86
+
Fill in the IP and port of the Linux/Mac OS X machine and hit "Connect" to start debugging.
84
87
85
88
After you've done this once, you can hit the MonoDevelop "Play" button or <kbd>F5</kbd> to bring up the connect dialog again.
86
89
87
-
Note: If you are debugging to CentOS, you will need to make an exception in the firewall
1. Open to a new folder and create `.vscode/launch.json`.
98
+
2. Create the following configuration in launch.json.
99
+
```
100
+
{
101
+
"version": "0.2.0",
102
+
"configurations": [
103
+
{
104
+
"name": "Attach to Mono",
105
+
"request": "attach",
106
+
"type": "mono",
107
+
"address": "<INSERT_MACHINE_IP_ADDRESS_HERE>",
108
+
"port": 1234
109
+
}
110
+
]
111
+
}
112
+
```
113
+
114
+
##### Configure the extension to enable remote debugging
115
+
116
+
Open the **~/.vscode/extensions/ms-vscode.cpptools-\<version\>/debugAdapters/OpenDebugAD7** file with a text editor and locate and uncomment the line at the bottom. When you start debugging, it will now hang until the remote debugger is attached from VS Code.
117
+
118
+
##### Attach the remote debugger
119
+
120
+
Select the `Attach to Mono` configuration and hit F5.
121
+
122
+
#### Additional Notes
123
+
124
+
Note: If you are debugging to CentOS, you will need to make an exception in the firewall.
Copy file name to clipboardExpand all lines: Documentation/FAQs.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ When you start debugging, if it is showing that your breakpoints aren't bound (s
23
23
24
24
### Debugging starts but all the lines in my stack trace are grey
25
25
26
-
If your debugger is showing a grey stacktrace or won't stop at a breakpoint,or the symbols in the call stack are grey then your executable was compiled without [debug symbols](#how-to-enable-debug-symbols).
26
+
If your debugger is showing a grey stacktrace or won't stop at a breakpoint,or the symbols in the call stack are grey then your executable was compiled without [debug symbols](#how-to-enable-debug-symbols).
Copy file name to clipboardExpand all lines: Documentation/LanguageServer/MinGW.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,12 @@ When you set the `compilerPath` property and change `intelliSenseMode` to `clang
20
20
}
21
21
```
22
22
23
+
Replace "gcc.exe" with whatever compiler you're using, e.g. "g++.exe", "clang-5.0.exe", etc. -- just make sure the file is a valid Windows executable (not a 0 size symlink).
24
+
25
+
For Cygwin, set the `compilerPath` to the appropriate Cygwin path, e.g. "C:/cygwin64/bin/g++.exe".
26
+
27
+
If it seems like the `compilerPath` is not getting used, you can debug the issue via [enabling logging](Enabling%20logging.md).
28
+
23
29
## Extension version 0.16.1 and earlier:
24
30
25
31
If you have an older version of the C/C++ extension installed, use [these instructions](Archive/MinGW.md) instead.
0 commit comments