Files
ToonTanks/Plugins/VisualStudioTools/Source/VisualStudioBlueprintDebuggerHelper/Private/VisualStudioBlueprintDebuggerHelperModule.h
2025-07-14 00:29:30 -04:00

30 lines
932 B
C++

// Copyright 2022 (c) Microsoft. All rights reserved.
#pragma once
#include <CoreMinimal.h>
#include <Modules/ModuleInterface.h>
#include <Modules/ModuleManager.h>
#include <UObject/Script.h>
#include <UObject/Stack.h>
#include <UObject/Object.h>
#include <Logging/LogMacros.h>
#include <UObject/Class.h>
#include <HAL/Platform.h>
DECLARE_LOG_CATEGORY_EXTERN(LogVisualStudioBlueprintDebuggerHelper, Log, All);
class FVisualStudioBlueprintDebuggerHelper : public FDefaultModuleImpl
{
private:
void OnScriptException(const UObject* Owner, const struct FFrame& Stack, const FBlueprintExceptionInfo& ExceptionInfo);
void OnEnterScriptContext(const struct FBlueprintContextTracker& Context, const UObject* SourceObject, const UFunction* Function);
void OnExitScriptContext(const struct FBlueprintContextTracker& Context);
int32 CurrentScriptEntryTag;
public:
void StartupModule() override;
void ShutdownModule() override;
};