# Question about &quot;kdb error: type&quot; erro

**URL:** https://forum.kx.com/t/question-about-quot-kdb-error-type-quot-erro/8154
**Category:** Community Support
**Tags:** kdb-and-q
**Created:** [February 13, 2013, 3:59pm UTC](https://forum.kx.com/t/question-about-quot-kdb-error-type-quot-erro/8154 "2013-02-13T15:59:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![carfield1](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@carfield1](https://forum.kx.com/u/carfield1)
#### Post date: [February 13, 2013, 3:59pm UTC](https://forum.kx.com/t/question-about-quot-kdb-error-type-quot-erro/8154/1 "2013-02-13T15:59:00Z")

</div>

Hi all

I just inherits a Q module and found out from the log that there are some println of “kdb error: type”. It is not always happened and there should not be mismatched assignment after checking. Other than adding a lot of print line, is there anyway to check where the problem is? If there any program like lint help to check the code?

Regards

---

<div class="post-metadata">

### Author: ![Ryan\_Hamilton1](https://avatars.discourse-cdn.com/v4/letter/r/82dd89/32.png) [@Ryan\_Hamilton1](https://forum.kx.com/u/Ryan_Hamilton1)
#### Post date: [February 13, 2013, 4:18pm UTC](https://forum.kx.com/t/question-about-quot-kdb-error-type-quot-erro/8154/2 "2013-02-13T16:18:00Z")

</div>

X-Gm-Message-State: ALoCoQmsQdWygnljHfm31me+abKEc3evz2VrQPFyEQi0fSUczRlAy7iWu08T6hPla/wIkA4p9Rpw

Hi Carfield,

Error information, brief as it is is given here:  
[http://code.kx.com/wiki/Errors](http://code.kx.com/wiki/Errors)

However the logged error you gave is probably being protectively  
evaluated as 'type is a thrown error. If you can remove it from the  
protected evaluation it may stop in the middle of the stack where the  
problem occurs… You’ll see the q prompt change to:  
q))

If your new to kdb:

Protected evaluation is like try/catch from C++ etc, details here:  
[http://code.kx.com/wiki/JB:QforMortals/execution\_control#Protected\_Evaluation](http://code.kx.com/wiki/JB:QforMortals/execution%5C_control#Protected%5C_Evaluation)

Some help debugging in kdb can be found at:  
[http://www.timestored.com/kdbGuides/debuggingKdb](http://www.timestored.com/kdbGuides/debuggingKdb)

There’s definitely no static analysis tools for kdb,  
Good luck,

Ryan Hamilton

---

<div class="post-metadata">

### Author: ![\_Oz](https://avatars.discourse-cdn.com/v4/letter/_/f07891/32.png) [@\_Oz](https://forum.kx.com/u/_Oz)
#### Post date: [February 13, 2013, 5:02pm UTC](https://forum.kx.com/t/question-about-quot-kdb-error-type-quot-erro/8154/3 "2013-02-13T17:02:00Z")

</div>

Also, you can try out statefull injectable debugger in the latest version of qpad (qinsightpad.com) to view execution and call stack, variables and probably the cause of what’s going on at the time of signal being thrown remotely.

Comes quite handy at times ;)

Cheers,  
Oleg
