# Debugging with TensorOperations

**URL:** <https://discourse.julialang.org/t/debugging-with-tensoroperations/26065>\
**Category:** General Usage\
**Tags:** debugging, tensors\
**Created:** [July 6, 2019, 9:18am UTC](https://discourse.julialang.org/t/debugging-with-tensoroperations/26065 "2019-07-06T09:18:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rjuliasim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rjuliasim/32/9206_2.png) [@rjuliasim](https://discourse.julialang.org/u/rjuliasim)\
**Post date:** [July 6, 2019, 9:18am UTC](https://discourse.julialang.org/t/debugging-with-tensoroperations/26065/1 "2019-07-06T09:18:40Z")

</div>

Hello,

if I set a breakpoint to line 10, i.e. the line with `println("hello")`,  
and enter debugger with Juno.@enter main() and then  
press Debug:continue symbol (\>\>) the debugger stops  
not at the defined breakpoint, line 10, but somewhere  
in `tensormacro.jl` a file of TensorOperations.

Any hints?

test program:

```julia
using LinearAlgebra
using TensorOperations

function main()
Id = Matrix{Float64}(I, 3, 3);
println("Id=", Id);
@tensor begin
    I4[i, j, k, l] := Id[i, k] * Id[j, l];
end;
println("hello");
println("I4=", I4);
end # main()

main()

```
