# Debugging on Bada

**URL:** <https://forums.imgtec.com/t/debugging-on-bada/771>\
**Category:** PowerVR Insider\
**Created:** [July 20, 2010, 11:37am UTC](https://forums.imgtec.com/t/debugging-on-bada/771 "2010-07-20T11:37:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alvalea](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/alvalea/32/81_2.png) [@alvalea](https://forums.imgtec.com/u/alvalea)\
**Post date:** [July 20, 2010, 11:37am UTC](https://forums.imgtec.com/t/debugging-on-bada/771/1 "2010-07-20T11:37:53Z")

</div>

Hi all,  
  
I’ve been trying the PowerVR SDK training courses for the Bada platform. It works ok if you launch the application with ‘Run As…’. But launching the application with ‘Debug As…’ you get an exception: It cannot create a context.  
  
I’ve found an EGL context property that makes the application fail in debug mode. It’s the EGL\_LEVEL property. Commenting two lines in PVRShellInitAPI::SelectEGLConfiguration it works on debug mode:  
  
457//&nbsp;&nbsp;&nbsp; conflist[i++] = EGL\_LEVEL;  
458//&nbsp;&nbsp;&nbsp; conflist[i++] = 0;  
  
I don’t know why this happens. Has anyone seen something like this?  
  
Best Regards

---

<div class="post-metadata">

**Author:** ![Scott](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/scott/32/256_2.png) [@Scott](https://forums.imgtec.com/u/Scott)\
**Post date:** [July 23, 2010, 9:11am UTC](https://forums.imgtec.com/t/debugging-on-bada/771/2 "2010-07-23T09:11:18Z")

</div>

Thanks for pointing this out. As the PVRShell is setting EGL\_LEVEL to its default value I'll have a look at removing those two lines of code for the next SDK release so as to work around this problem with the bada simulator.
