add config to allow for remote debugging

This commit is contained in:
Nils Ramstöck
2024-08-10 14:11:45 +02:00
parent e53282cae5
commit da52b53657
3 changed files with 19 additions and 2 deletions

5
.gitignore vendored
View File

@@ -135,4 +135,7 @@ NetscriptDefinitions.d.ts
# Location of the files mirrored from the game
mirror/
build/
build/
.vscode/*
!.vscode/launch.json

11
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "attach",
"name": "Attach to BitBurner",
"port": 9222,
}
]
}

View File

@@ -23,7 +23,10 @@ const createContext = async () => await context({
bundle: true,
format: 'esm',
platform: 'browser',
logLevel: 'debug'
logLevel: 'debug',
sourcemap: 'inline',
sourceRoot: '/build/server',
sourcesContent: false
});
const ctx = await createContext();