Skip to content

ScreepsMods/screepsmod-user-script-debug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

NPM

screepsmod-user-script-debug

Local server mod for debugging user scripts.

Launches runner with --debug 6001, disables relaunch, gives all users infinite CPU.

Manual steps

Runners count must be limited to 1 in .screepsrc

runners_cnt = 1

Connecting from VSCode

Create launch configuration .vscode/launch.json

{
	"version": "0.2.0",
	"configurations": [
		{
			"type": "node",
			"request": "attach",
			"name": "Attach to Process",
			"port": 6001,
			"protocol": "legacy"
		}
	]
}

Some versions of VSCode might behave funny with screeps. If you have other bots on the server and get dropped into wrong bot on a breakpoint, consider disabling all bots but yours or downgrading IDE.

About

screeps local server mod for debugging user scripts

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published