Skip to content

Debug natives don't work on open.mp #61

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

Open
TommyB123 opened this issue Apr 11, 2025 · 1 comment
Open

Debug natives don't work on open.mp #61

TommyB123 opened this issue Apr 11, 2025 · 1 comment

Comments

@TommyB123
Copy link

Not sure if this is an issue with open.mp or the plugin itself, but it seems that the various debug_* natives don't work when running a script on open.mp, stating that debug info is unavailable. An AMX/PawnPlus error is raised when attempting to a script which I've confirmed is compiled with -d3

[12:17:05] AMX backtrace:
[12:17:05] #0 native PrintBacktrace () in crashdetect.DLL
[12:17:05] #1 00565dd8 in public pp_on_error (source[]=@00d1d13c "debug_num_symbols", message[]=@00d1d0cc "debug info is not available", error_level:level=2, &retval=@00d1d0c8 0) at src\redcountyrp\gamemodes\RCRP_MySQL.pwn:2452
[12:17:05] #2 native debug_num_symbols () in PawnPlus.DLL
[04/11/2025 12:17:05] [Info] [PawnPlus Error (level 2)] debug_num_symbols debug info is not available
[04/11/2025 12:17:05] [Info] [PawnPlus] debug_num_symbols: debug info is not available
@TommyB123
Copy link
Author

TommyB123 commented Apr 11, 2025

#include <open.mp>
#include <PawnPlus>

main() {}

public OnGameModeInit()
{
	printf("%i debug symbols", debug_num_symbols());
	return 1;
}

public pp_on_error(source[], message[], error_level:level, &retval)
{
	printf("[PawnPlus Error (level %i)] %s %s", level, source, message);
}

Basic script that can be used to test the issue. Works fine on SA-MP server, does not work on open.mp server.

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

1 participant