Captien

[UPDATED][1.1+] Server-side chrome debugger

Recommended Posts

Chrome debugger is one of the great features used in server-side to do fast Javascript evaluations, and debug your running code.

Installation:

1) Install Nodejs v8 inspector in to chrome.

2)  Add "node-commandline-flags": "--inspect" to your conf.json

3) Start your ragemp-server.exe and it should open you a new tab in your browser. You should get something like that in your server console

node commandline flags: --inspect
Debugger listening on ws://127.0.0.1:9229/9e5f37a9-4374-4eeb-a7a9-824550b5cdc5
Debugger attached.

and here's the debugger window....
DyU7NnW.png

Now you are good to go.

Edited by Captien
Updated to 1.1 version
  • Like 3

Share this post


Link to post
Share on other sites

The advantage of this console is that you can do evaluations without the need of entering in game to test it. 

Edited by Captien

Share this post


Link to post
Share on other sites

Hi, this doesnt work for me. It displays in the server dialog:

bad option: --inspector

any idea why? 

Share this post


Link to post
Share on other sites

Type --inspect no --inspector. (Sorry it was a mistype in the tutorial).

 

Client-side console isn't possible, You need to suggest it as a feature for rage.

Edited by Captien
  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.