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
Copy file name to clipboardExpand all lines: docs/README.md
+38-1Lines changed: 38 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ JsDbg is a tool that provides browser developers with a web-based platform for n
5
5
6
6
## Supported debuggers and platforms
7
7
8
-
JsDbg currently supports WinDbg and the Visual Studio debugger on Windows. Support for additional debuggers (ex. GDB) and platforms (ex. MacOS) will be available in the future. If you wish to use JsDbg with a debugger that is currently unsupported, please file an issue (or upvote an existing one) to track your request.
8
+
JsDbg currently supports WinDbg and the Visual Studio debugger on Windows, and GDB on Linux. Support for additional debuggers (ex. LLDB) and platforms (ex. MacOS) will be available in the future. If you wish to use JsDbg with a debugger that is currently unsupported, please file an issue (or upvote an existing one) to track your request.
9
9
10
10
## JsDbg for WinDbg
11
11
@@ -39,6 +39,43 @@ JsDbg currently supports WinDbg and the Visual Studio debugger on Windows. Suppo
39
39
40
40
4. The JsDbg server will launch and prompt you to select a browser. If the debugger is attached to one browser, it is recommended that you choose a different browser for JsDbg.
41
41
42
+
## JsDbg for GDB
43
+
44
+
### Setup (.deb package)
45
+
46
+
If using Debian or Ubuntu, you can install JsDbg as a .deb package:
47
+
48
+
1. Install the .NET Core Runtime using the instructions from [here](https://dotnet.microsoft.com/download).
2. Extract the file somewhere, e.g. in your home directory: `cd ~ && tar xjf ~/Downloads/jsdbg-gdb.tar.bz2`
62
+
63
+
3. Add the following snippet to your `~/.gdbinit` file:
64
+
65
+
```
66
+
python
67
+
import sys
68
+
sys.path.insert(0, "<path where you extracted the .tar.bz2>/jsdbg-gdb")
69
+
import JsDbg
70
+
end
71
+
```
72
+
73
+
### Usage
74
+
75
+
1. Run GDB for your program as usual.
76
+
77
+
2. Type `jsdbg` at the GDB prompt to launch the server and open a browser window.
78
+
42
79
## Using JsDbg extensions
43
80
44
81
There are many different ways browser developers can incorporate JsDbg extensions into their debugging workflow. See [JsDbg features](FEATURES.md) for details about popular features in JsDbg.
0 commit comments