# VB.Net Roslyn Debugger replaces square brackets with round brackets in display

**URL:** <https://forum.alternetsoft.com/t/vb-net-roslyn-debugger-replaces-square-brackets-with-round-brackets-in-display/427>\
**Category:** AlterNET Studio Support\
**Tags:** scripter, wpf\
**Created:** [October 26, 2023, 9:19am UTC](https://forum.alternetsoft.com/t/vb-net-roslyn-debugger-replaces-square-brackets-with-round-brackets-in-display/427 "2023-10-26T09:19:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Felix](https://forum.alternetsoft.com/letter_avatar_proxy/v4/letter/f/606060/32.png) [@Felix](https://forum.alternetsoft.com/u/Felix)\
**Post date:** [October 26, 2023, 9:19am UTC](https://forum.alternetsoft.com/t/vb-net-roslyn-debugger-replaces-square-brackets-with-round-brackets-in-display/427/1 "2023-10-26T09:19:49Z")

</div>

When debugging a **VB** script and looking at the value of a string property directly, the debugger replaces square brackets with round brackets. This is only a display issue and does not change the actual value of the property.

This is the correct value (the new line is missing but that is expected in this view):

 ![image](https://forum.alternetsoft.com/uploads/default/original/1X/6815020a793e309078b5823f3a14c59b519dd592.png)

When looking at the value directly it changes the displayed string:

 ![image](https://forum.alternetsoft.com/uploads/default/original/1X/4eaa6d6b201bff47a970a067089413495c7f3ccc.png)

This does **not** happen in **C#** scripts:

 ![image](https://forum.alternetsoft.com/uploads/default/original/1X/3a85903768601600d9c70821993f987c243f45a5.png)

Hope this helps,  
Felix

---

<div class="post-metadata">

**Author:** ![dmitry.medvedev](https://forum.alternetsoft.com/user_avatar/forum.alternetsoft.com/dmitry.medvedev/32/27_2.png) [@dmitry.medvedev](https://forum.alternetsoft.com/u/dmitry.medvedev)\
**Post date:** [October 31, 2023, 1:34am UTC](https://forum.alternetsoft.com/t/vb-net-roslyn-debugger-replaces-square-brackets-with-round-brackets-in-display/427/2 "2023-10-31T01:34:49Z")

</div>

Hi Felix,

Thank you for reporting this problem. It’s indeed a code in the Visual Basic expression evaluator that replaces with (), which was supposed to work for arrays only.

We have fixed it internally and push the fix as a part of the next NuBet update.

Kind regards,  
Dmitry

---

<div class="post-metadata">

**Author:** ![dmitry.medvedev](https://forum.alternetsoft.com/user_avatar/forum.alternetsoft.com/dmitry.medvedev/32/27_2.png) [@dmitry.medvedev](https://forum.alternetsoft.com/u/dmitry.medvedev)\
**Post date:** [November 17, 2023, 6:13am UTC](https://forum.alternetsoft.com/t/vb-net-roslyn-debugger-replaces-square-brackets-with-round-brackets-in-display/427/3 "2023-11-17T06:13:30Z")

</div>

Hi Felix,

We’ve just released an update to [NuGet](https://www.nuget.org/profiles/Alternet) (version 9.1.2), where this issue should be fixed.

Kind regards,  
Dmitry
