You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I load an executable target into the debugger that has been built without the CRT main() or WinMain() entry points and instead was built with mainCRTStartup() or WinMainCRTStartup(), hitting F10 does not place me at the beginning of my entry point but instead somewhere inside ntdll.dll.
Here's a sample application:
#include <stdio.h>
int mainCRTStartup()
{
int x = 5;
int y = 10;
printf("%d + %d = %d\n", x, y, x + y);
return 0;
}
If I replace the mainCRTStartup() with main() and run the same command (excluding the ucrt.lib at the end), F10 will step directly into the beginning of main().
The text was updated successfully, but these errors were encountered:
WinMainCRTStartup should work, but the debugger was not previously looking for mainCRTStartup. Can you try pulling 25c31b0, building, and running again?
Yes, that worked perfectly. Thank you, Ryan! And I'm sorry about the wrong information regarding WinMainCRTStartup(). I must've been testing something else and misconstrued it as that instead.
If I load an executable target into the debugger that has been built without the CRT
main()
orWinMain()
entry points and instead was built withmainCRTStartup()
orWinMainCRTStartup()
, hitting F10 does not place me at the beginning of my entry point but instead somewhere inside ntdll.dll.Here's a sample application:
and build it with
If I replace the
mainCRTStartup()
withmain()
and run the same command (excluding theucrt.lib
at the end), F10 will step directly into the beginning ofmain()
.The text was updated successfully, but these errors were encountered: