libctru  v1.6.0
pmdbg.h
Go to the documentation of this file.
1 /**
2  * @file pmdbg.h
3  * @brief PM (Process Manager) debug service.
4  */
5 #pragma once
6 
7 #include <3ds/services/pmapp.h>
8 
9 /// Initializes pm:dbg.
10 Result pmDbgInit(void);
11 
12 /// Exits pm:dbg.
13 void pmDbgExit(void);
14 
15 /**
16  * @brief Gets the current pm:dbg session handle.
17  * @return The current pm:dbg session handle.
18  */
20 
21 /**
22  * @brief Enqueues an application for debug after setting cpuTime to 0, and returns a debug handle to it.
23  * If another process was enqueued, this just calls @ref RunQueuedProcess instead.
24  * @param[out] Pointer to output the debug handle to.
25  * @param programInfo Program information of the title.
26  * @param launchFlags Flags to launch the title with.
27  */
28 Result PMDBG_LaunchAppDebug(Handle *outDebug, const FS_ProgramInfo *programInfo, u32 launchFlags);
29 
30 /**
31  * @brief Launches an application for debug after setting cpuTime to 0.
32  * @param programInfo Program information of the title.
33  * @param launchFlags Flags to launch the title with.
34  */
35 Result PMDBG_LaunchApp(const FS_ProgramInfo *programInfo, u32 launchFlags);
36 
37 /**
38  * @brief Runs the queued process and returns a debug handle to it.
39  * @param[out] Pointer to output the debug handle to.
40  */
s32 Result
Function result.
Definition: types.h:42
Program information.
Definition: fs.h:181
Result PMDBG_LaunchApp(const FS_ProgramInfo *programInfo, u32 launchFlags)
Launches an application for debug after setting cpuTime to 0.
u32 Handle
Resource handle.
Definition: types.h:41
Result PMDBG_RunQueuedProcess(Handle *outDebug)
Runs the queued process and returns a debug handle to it.
Handle * pmDbgGetSessionHandle(void)
Gets the current pm:dbg session handle.
uint32_t u32
32-bit unsigned integer
Definition: types.h:23
PM (Process Manager) application service.
Result PMDBG_LaunchAppDebug(Handle *outDebug, const FS_ProgramInfo *programInfo, u32 launchFlags)
Enqueues an application for debug after setting cpuTime to 0, and returns a debug handle to it.
Result pmDbgInit(void)
Initializes pm:dbg.
void pmDbgExit(void)
Exits pm:dbg.