Common Issues
The profiler shows the session but without any statements
If you try to run a program that exits very fast, you may see the session in the profiler without any log statements. This is because that the profiler didn't get the chance yet to log the statements because your application already exits. To solve this, you can force the profiler the get all the statements by adding the following line at the end of your code:
ProfilerInfrastructure.FlushAllMessages();