Home > Back-end >  C how to implement the code to which line?
C how to implement the code to which line?

Time:10-13

I have 1000 lines of code, for example, in the process of execution, I want to know which line the current code execution, and execution, next time, followed by performed before the code executed, excuse me each, how to implement?
:
my interface, pause, continue, stop four button,
Click start, the program starts executing...
Click pause, the program immediately suspend, no longer to perform the execution to 500 lines, for example,
Click continue, the application start effective from 501 lines...
Click stops, the program immediately cease execution,


note: such as some code, though only a line, but the bank code execution, may take a few seconds,

CodePudding user response:

Is it possible that the interpreted languages

CodePudding user response:

reference 1st floor ooolinux response:
interpreted languages is it possible to

Don't know not studied

CodePudding user response:

In a process or thread hangs, recovery, termination, query context information such as operation,

CodePudding user response:

The Process and Thread Functions provides
The following functions provides are 2 with The processes and threads.



AttachThreadInput
CommandLineToArgvW
CreateProcess
CreateProcessAsUser
CreateRemoteThread
CreateThread
ExitProcess
ExitThread
FreeEnvironmentStrings
The GetCommandLine
GetCurrentProcess
GetCurrentProcessId
GetCurrentThread
GetCurrentThreadId
GetEnvironmentStrings
GetEnvironmentVariable
GetExitCodeProcess
GetExitCodeThread
GetGuiResources
GetPriorityClass
GetProcessAffinityMask
GetProcessPriorityBoost
GetProcessShutdownParameters
GetProcessTimes
GetProcessVersion
GetProcessWorkingSetSize
GetStartupInfo
GetThreadPriority
GetThreadPriorityBoost
GetThreadTimes
OpenProcess
ResumeThread
The SetEnvironmentVariable
SetPriorityClass
SetProcessAffinityMask
SetProcessPriorityBoost
SetProcessShutdownParameters
SetProcessWorkingSetSize
SetThreadAffinityMask
SetThreadIdealProcessor
SetThreadPriority
SetThreadPriorityBoost
Sleep
SleepEx
SuspendThread
SwitchToThread
The TerminateProcess
The TerminateThread
ThreadProc
TlsAlloc
TlsFree
TlsGetValue
TlsSetValue
WaitForInputIdle


Job Object Functions provides
The following functions provides are 2 with job objects.



AssignProcessToJobObject
CreateJobObject
OpenJobObject
OpenJobObjectToken
QueryInformationJobObject
SetInformationJobObject
TerminateJobObject
UserHandleGrantAccess


Fiber Functions provides
The following functions provides are 2 with fibers.



ConvertThreadToFiber
CreateFiber
DeleteFiber
FiberProc
GetCurrentFiber
GetFiberData
SwitchToFiber


Obsolete Functions provides


WinExec
Yield



  • Related