# Using Atomics in the vs code debugger

**URL:** https://discourse.julialang.org/t/using-atomics-in-the-vs-code-debugger/90349
**Category:** VS Code
**Created:** [November 16, 2022, 1:46pm UTC](https://discourse.julialang.org/t/using-atomics-in-the-vs-code-debugger/90349 "2022-11-16T13:46:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Impressium](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/impressium/32/19575_2.png) [@Impressium](https://discourse.julialang.org/u/Impressium)
#### Post date: [November 16, 2022, 1:46pm UTC](https://discourse.julialang.org/t/using-atomics-in-the-vs-code-debugger/90349/1 "2022-11-16T13:46:23Z")

</div>

Hi all 🙂

I tried to use

```julia
a = Threads.Atomic{Int}(1)
a[] = 2
# more stuff...

```

in the vs code debugger. It stopped and didn’t want to continue at `a[] = 2`.

Any idea why?

Thanks  
Cheers
