{"id":17261299,"url":"https://github.com/aybe/debugbreakf12","last_synced_at":"2025-03-26T10:10:20.745Z","repository":{"id":84878520,"uuid":"571339181","full_name":"aybe/DebugBreakF12","owner":"aybe","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-28T00:22:11.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T11:23:07.037Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aybe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-27T22:24:46.000Z","updated_at":"2022-11-27T22:24:56.000Z","dependencies_parsed_at":"2023-03-02T18:16:12.842Z","dependency_job_id":null,"html_url":"https://github.com/aybe/DebugBreakF12","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aybe%2FDebugBreakF12","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aybe%2FDebugBreakF12/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aybe%2FDebugBreakF12/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aybe%2FDebugBreakF12/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aybe","download_url":"https://codeload.github.com/aybe/DebugBreakF12/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245632423,"owners_count":20647193,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T07:50:44.430Z","updated_at":"2025-03-26T10:10:20.715Z","avatar_url":"https://github.com/aybe.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DebugBreakF12\n\nDemonstrates that when native debugging is enabled, the F12 key is no longer usable.\n\nInstead, you get the following:\n\n\u003e A breakpoint instruction (__debugbreak() statement or a similar call) was executed in DebugBreakF12.exe.\n\nThe call stack does not permit to spot where this comes from:\n\n```\n\u003e\tntdll.dll!DbgBreakPoint\u001e()\tUnknown\tSymbols loaded.\n \tntdll.dll!DbgUiRemoteBreakin\u001e()\tUnknown\tSymbols loaded.\n \tkernel32.dll!BaseThreadInitThunk\u001e()\tUnknown\tSymbols loaded.\n \tntdll.dll!RtlUserThreadStart\u001e()\tUnknown\tSymbols loaded.\n```\n\nTrying to play with the value of [AeDebug](https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-2000-server/cc939482(v=technet.10)) in registry in order to disable this has no effect.\n\nIf trying to switch to a 32-bit platform, the bug vanishes.\n\nBut then, after a few minutes running, you get a `StackOverflowException` in `SwapBuffers`:\n\n```\n \t[Managed to Native Transition]\t\tAnnotated Frame\n \tOpenTK.Windowing.Desktop.dll!OpenTK.Windowing.Desktop.GLFWGraphicsContext.SwapBuffers()\tUnknown\tNon-user code. Skipped loading symbols.\n \tOpenTK.Windowing.Desktop.dll!OpenTK.Windowing.Desktop.GameWindow.SwapBuffers()\tUnknown\tNon-user code. Skipped loading symbols.\n\u003e\tDebugBreakF12.dll!MyGameWindow.OnRenderFrame(OpenTK.Windowing.Common.FrameEventArgs args) Line 38\tC#\tSymbols loaded.\n \tOpenTK.Windowing.Desktop.dll!OpenTK.Windowing.Desktop.GameWindow.DispatchRenderFrame()\tUnknown\tNon-user code. Skipped loading symbols.\n \tOpenTK.Windowing.Desktop.dll!OpenTK.Windowing.Desktop.GameWindow.Run()\tUnknown\tNon-user code. Skipped loading symbols.\n \tDebugBreakF12.dll!Program.\u003cMain\u003e$(string[] args) Line 13\tC#\tSymbols loaded.\n```\n\nAnd this happens even if you disable native debugging.\n\nEnvironment:\n- Microsoft Windows [Version 10.0.19044.2251]\n- OpenTK 4.7.5\n- Visual Studio 2022, Version 17.4.1, VisualStudio.17.Release/17.4.1+33110.190\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faybe%2Fdebugbreakf12","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faybe%2Fdebugbreakf12","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faybe%2Fdebugbreakf12/lists"}