# Wip Debug Function

**URL:** <https://forum.sierrawireless.com/t/wip-debug-function/3016>\
**Category:** Open AT\
**Created:** [March 6, 2009, 2:52pm UTC](https://forum.sierrawireless.com/t/wip-debug-function/3016 "2009-03-06T14:52:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gugulethu](https://avatars.discourse-cdn.com/v4/letter/g/f04885/32.png) [@gugulethu](https://forum.sierrawireless.com/u/gugulethu)\
**Post date:** [March 6, 2009, 2:52pm UTC](https://forum.sierrawireless.com/t/wip-debug-function/3016/1 "2009-03-06T14:52:31Z")

</div>

HI there

Can I do away with with function wip\_debug() im my application?

I have decided to use wip\_netInit(); and not the wip\_netInitOpts(int opt,…);

Each time I used the wip\_netInitOpts(WIP\_NET\_OPT\_DEBUG\_PORT, WIP\_NET\_DEBUG\_PORT\_UART1, WIP\_NET\_OPT\_END); function I got an error because I issued a custom at command twice in my code.

Since using the function wip\_netInit() and removing all the debug related statements I can issue my custom at command eg “at+afcconnect” as many times as I want and I can send a response adl\_atResponseSend(ADL\_AT\_RSP, “Still connected to APN”) as long as the modem is still connected to the APN.

Do the errors brought back by the wip\_debug function traces matter or I do not need to worry a lot about them. My application works the way I want it to after removing wip\_debug traces.

---

<div class="post-metadata">

**Author:** ![Madouc](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@Madouc](https://forum.sierrawireless.com/u/Madouc)\
**Post date:** [March 6, 2009, 7:44pm UTC](https://forum.sierrawireless.com/t/wip-debug-function/3016/2 "2009-03-06T19:44:05Z")

</div>

well, since debug traces generally have little to do with the correct working of an application, ofcource you can.  
debug messages are only to make your life as programmer more easy, but if you wish not to use them or implement your own debug method, your always welcome.

---

<div class="post-metadata">

**Author:** ![gugulethu](https://avatars.discourse-cdn.com/v4/letter/g/f04885/32.png) [@gugulethu](https://forum.sierrawireless.com/u/gugulethu)\
**Post date:** [March 7, 2009, 7:51pm UTC](https://forum.sierrawireless.com/t/wip-debug-function/3016/3 "2009-03-07T19:51:15Z")

</div>

thanks. but what happens to the error that was appearing because of my issuing the custom at command again? Is it a debug error also.

---

<div class="post-metadata">

**Author:** ![Madouc](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@Madouc](https://forum.sierrawireless.com/u/Madouc)\
**Post date:** [March 8, 2009, 4:54pm UTC](https://forum.sierrawireless.com/t/wip-debug-function/3016/4 "2009-03-08T16:54:59Z")

</div>

well, the events (or errors) are still occuring, but you will not know what happened if you don’t use the debug messages.

as for your error, what error are you getting, what are you trying to do?  
are you issuing this custom command to an external device, or to your own program (though is don’t think that is possible)?  
is there maybe a conflict in the use of uart1?

---

<div class="post-metadata">

**Author:** ![gugulethu](https://avatars.discourse-cdn.com/v4/letter/g/f04885/32.png) [@gugulethu](https://forum.sierrawireless.com/u/gugulethu)\
**Post date:** [March 13, 2009, 1:22pm UTC](https://forum.sierrawireless.com/t/wip-debug-function/3016/5 "2009-03-13T13:22:28Z")

</div>

Hi,

I re-used wip\_InitOpts() and the wip\_debug functions in my code and now I do not receive the error that I was asking about. I used an if else condition to ensure that if my modem is connected to GPRS already, the response from the modem after receiving a command to connect to the apn is CONNECTED. It seems the else if statement eliminated my program.

I still do have the debugging functions.
