VSCodePlugin
A plugin for VS Code that provides code completion and debugging for PV8 Lua games.
Install / Use
/learn @PixelVision8/VSCodePluginQuality Score
Category
Development & EngineeringSupported Platforms
README
PV8 VSCode Debugger
This project is based on the MoonSharp VSCode Debugger
This is an extension to allow debugging of Lua scripts running inside Pixel Vision 8.
Features supported
- Connect to the currently running game's Lua script
- Supports breakpoints, watches, local variables,
selfinspection - Call stack, with visualization of current coroutine
- Watches can contain free formed expressions, as long they are side-effects free
- Inspection of values including internal ids and table contents
- Print statements are displayed in the debug console
Features not supported
- Editing of values not supported
- No checks are made for file contents changes
- Due to how vscode works, token-based breakpoints are not supported
How to use
-
Open Pixel Vision 8's Workspace Folder (located in your computer's User directory)
-
Create a new launch.json file in a
.VSCodefolder at the root of the Workspace directory with the following:
{
"version": "0.2.0",
"debugServer" : 41912,
"configurations": [
{
"name": "PV8 Debugger Attach",
"type": "pv8-debug",
"request": "attach",
"debugServer": 1985
}
]
}
-
Hold down the shift key while a game loads to begin the countdown for connecting the debugger.
-
In VS Code, select Debug -> PV8 Debugger then switch back over to Pixel Vision 8
-
Once the debugger is connected, you should see a debug icon in the title bar
-
When the game loads up, you should be able to trigger break points to inspect the code that is currently running. By default, the debugger will break on Init().
-
Type !scripts to display all of the script files that are currently loaded
Related Skills
node-connect
352.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
Security Score
Audited on Nov 10, 2025