Use PkmnLib Debugger instead/
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
7043b12f34
commit
af81c92165
|
@ -44,4 +44,3 @@ set(PRE_CONFIGURE_FILE "git.h.in")
|
||||||
set(POST_CONFIGURE_FILE "src/git.h")
|
set(POST_CONFIGURE_FILE "src/git.h")
|
||||||
include(git_watcher.cmake)
|
include(git_watcher.cmake)
|
||||||
add_dependencies(PokemonScriptTester check_git)
|
add_dependencies(PokemonScriptTester check_git)
|
||||||
target_include_directories(PokemonScriptTester PRIVATE extern/AngelscriptDebugger/extern/asio-1.18.2/include)
|
|
||||||
|
|
|
@ -44,9 +44,10 @@ function(include_pkmnlib)
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/PkmnLib/include/PkmnLib/extern)
|
${CMAKE_CURRENT_BINARY_DIR}/PkmnLib/include/PkmnLib/extern)
|
||||||
|
|
||||||
include_directories(${CMAKE_CURRENT_BINARY_DIR}/PkmnLib/include
|
include_directories(${CMAKE_CURRENT_BINARY_DIR}/PkmnLib/include
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/PkmnLib/bin/CreatureLib/include
|
${CMAKE_CURRENT_BINARY_DIR}/PkmnLib/src/pkmnlib/extern/AngelscriptDebuggerServer/extern/asio-1.18.2/include
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/PkmnLib/bin/Angelscript/src/AngelscriptProj/angelscript/include
|
${CMAKE_CURRENT_BINARY_DIR}/PkmnLib/bin/CreatureLib/include
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/PkmnLib/bin/CreatureLib/bin/Arbutils/include)
|
${CMAKE_CURRENT_BINARY_DIR}/PkmnLib/bin/Angelscript/src/AngelscriptProj/angelscript/include
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/PkmnLib/bin/CreatureLib/bin/Arbutils/include)
|
||||||
|
|
||||||
|
|
||||||
endfunction()
|
endfunction()
|
|
@ -3,7 +3,6 @@
|
||||||
|
|
||||||
#include <PkmnLib/ScriptResolving/AngelScript/AngelScriptMetadata.hpp>
|
#include <PkmnLib/ScriptResolving/AngelScript/AngelScriptMetadata.hpp>
|
||||||
#include <PkmnLib/ScriptResolving/AngelScript/ContextPool.hpp>
|
#include <PkmnLib/ScriptResolving/AngelScript/ContextPool.hpp>
|
||||||
#include "../../extern/AngelscriptDebugger/src/AngelscriptDebugger.hpp"
|
|
||||||
#include "../../extern/termcolor.hpp"
|
#include "../../extern/termcolor.hpp"
|
||||||
#include "Test.hpp"
|
#include "Test.hpp"
|
||||||
|
|
||||||
|
@ -36,7 +35,8 @@ public:
|
||||||
i32 RunAll(bool waitForDebugger) {
|
i32 RunAll(bool waitForDebugger) {
|
||||||
auto ctx = _scriptResolver->GetContextPool()->RequestContext();
|
auto ctx = _scriptResolver->GetContextPool()->RequestContext();
|
||||||
ctx->SetUserData(_scriptResolver->GetUserdata());
|
ctx->SetUserData(_scriptResolver->GetUserdata());
|
||||||
auto debugger = AngelscriptDebugger();
|
_scriptResolver->SetDebugger(new AngelscriptDebugger());
|
||||||
|
auto& debugger = *_scriptResolver->GetDebugger().GetValue();
|
||||||
debugger.Run(8684);
|
debugger.Run(8684);
|
||||||
debugger.RegisterContext(ctx);
|
debugger.RegisterContext(ctx);
|
||||||
if (waitForDebugger) {
|
if (waitForDebugger) {
|
||||||
|
|
Loading…
Reference in New Issue