add config to allow for remote debugging
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -136,3 +136,6 @@ NetscriptDefinitions.d.ts
|
|||||||
|
|
||||||
mirror/
|
mirror/
|
||||||
build/
|
build/
|
||||||
|
|
||||||
|
.vscode/*
|
||||||
|
!.vscode/launch.json
|
||||||
11
.vscode/launch.json
vendored
Normal file
11
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"type": "chrome",
|
||||||
|
"request": "attach",
|
||||||
|
"name": "Attach to BitBurner",
|
||||||
|
"port": 9222,
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -23,7 +23,10 @@ const createContext = async () => await context({
|
|||||||
bundle: true,
|
bundle: true,
|
||||||
format: 'esm',
|
format: 'esm',
|
||||||
platform: 'browser',
|
platform: 'browser',
|
||||||
logLevel: 'debug'
|
logLevel: 'debug',
|
||||||
|
sourcemap: 'inline',
|
||||||
|
sourceRoot: '/build/server',
|
||||||
|
sourcesContent: false
|
||||||
});
|
});
|
||||||
|
|
||||||
const ctx = await createContext();
|
const ctx = await createContext();
|
||||||
|
|||||||
Reference in New Issue
Block a user