cancel
Showing results for 
Search instead for 
Did you mean: 

Debugger getting detached in SAP SAM

Srinivasreddy_b
Explorer
0 Kudos

Hello Experts,

While debugging in VS code, suddenly the debugger getting detached in SAP SAM 2310 version, my colleagues are also facing the same issue. The application is loading from the Mobile services not from the local repository.

 

Thanks and Regards,

Srinivas

Srinivasreddy_b
Explorer
0 Kudos

Hello Bill,

We found that the MDK extension for VS code is causing the issue. Current MDK extension version(1.27.2) is having issues. I have rolled it back to 1.27.0, then the debugger is attaching and working fine.

Thanks for the quick response.

 

Regards,

Srinivas

View Entire Topic
Sean_Zhang
Product and Topic Expert
Product and Topic Expert

The target cardinality of an association shall always be defined explicitly providing the minimum and maximum number of target instance occurences, for example [0..1] or [0..*].

It is recommended to increase the transparency of the model by always specifying the maximum cardinality of joins (...left outer to one join.../...left outer to many join...), which are used in the CDS view definition.

If fields are added to a view via joins with the addition "to one" or associations with the target cardinality [0/1..1] the corresponding joins shall only be executed if these fields are actually selected.

This is actually the influence.

because, for "to one" or associaiton cardinality [0/1..1], the generated SQL statement will be interpretated as LEFT out join to one. Then if the DB support the optimization and no fields from the right right is selected in the comsumer level, the join will be by passed. e.g. the HANA supports the optimization.

horst_keller
Product and Topic Expert
Product and Topic Expert
0 Kudos

This is correct.

In fact we have platform dependent behavior here, because not all DBs optimize.

The documentation was enhanced and will deliver some examples with next release.

Sean_Zhang
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Horst,

Yes, the optimization is DB specific.

and it's also good to hear that there will be official document and example to explain this.

Best Regards,

Sean