Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 12:55, 7 May 2008.

Debugging leaves

From Forum Nokia Wiki


Original (Russian): Отладка сброса (leave)


Debugging Leave situations might be tedious. It would be much easier if the debugger could catch leaves and break the code execution. Luckily, there is a way to achieve it:

#define __LEAVE_IF_ERR(_c) TInt32 __reason = _c;       \
                           if (__reason < 0) {         \
                              __BREAKPOINT();          \
                              User::Leave(__reason);   \
	                   }

The usage of this macro is similar to using User::LeaveIfError(), e.g. __LEAVE_IF_ERR(iFs.Connect()).

Related Discussions
Thread Thread Starter Forum Replies Last Post
Series 60 On-device debugging with Codewarrior 2.8 eugene.au Symbian Tools & SDKs 0 2004-09-24 04:33
On-Devide Debug - do YOU want to help us to improve this feature? Mike Trujillo Carbide.c++ and CodeWarrior Tools 18 2008-05-19 14:53
Problem with breakpoint Zaibach Carbide.c++ and CodeWarrior Tools 1 2007-07-06 17:15
Need help.....about debugging and ..... ntsing General Symbian C++ 1 2002-09-24 08:56
builderX - ARMIB stenlik Symbian Tools & SDKs 5 2004-11-08 05:03
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX