Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to attach a debugger to samp-node? #9

Open
SelfRecursion opened this issue Mar 14, 2021 · 3 comments
Open

Is it possible to attach a debugger to samp-node? #9

SelfRecursion opened this issue Mar 14, 2021 · 3 comments

Comments

@SelfRecursion
Copy link

I've started developing a framework to ease up gamemode developments with this plugin, and I've been loving to work with it so far! But since I'm still a bit new with VS Code and node apps, I would like to know if somebody knows a way to debug developments, without constantly having to define console.logs, or if there is an easier alternative. Thanks in advance!

@alextwothousand
Copy link
Contributor

alextwothousand commented Mar 14, 2021 via email

@tmfksoft
Copy link

tmfksoft commented Jun 3, 2022

I've looked into this just now for the same reason.
Just to help towards development.

When enabling it with the following code:

		const inspector = require('node:inspector');
		inspector.open();

It fails with the following error:

Error [ERR_INSPECTOR_NOT_AVAILABLE]: Inspector is not available

No idea why this is happening, would be useful to allow attaching an external debugger.

@danjdewhurst
Copy link
Contributor

This uses a 32 bit build of node which doesn’t include any debugging tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants