﻿# What can I use instead of "int 3" instruction in a 64\-bit application?

The 64\-bit version of Visual C\+\+ compiler does not support inline assembler, so you cannot write code like "\_\_asm int 3"\. But there is one more, less known mechanism to create interrupts during debugging – \_\_debugbreak\(\)\. This is an intrinsic function of the VisualC\+\+ compiler defined in vc\\include\\intrin\.h which actually has the same functionality as int 3\. Unlike int 3, this function is cross\-platform\. The Win32 function DebugBreak\(\) has a similar functionality\.

## References

1. Discussion at www\.stackoverflow\.com\. [Where did int 3 go?](https://stackoverflow.com/questions/3634124/why-does-int-3-generate-a-sigsegv-in-64-bit-instead-of-stopping-the-debugger)
1. MSDN Library\. [DebugBreak Function](https://msdn.microsoft.com/en-us/library/ms679297(v=vs.85).aspx)
1. MSDN Library\. [\_\_debugbreak](https://msdn.microsoft.com/en-us/library/f408b4et.aspx)